PCA Index Dashboard Examples

PCA Index Dashboard Examples#

This script was last run at 2024-08-14 10:22:51.175291+00:00 (UTC)
In US/Central Time, this is 2024-08-14 05:22:51.175291-05:00
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np

# Generating a random time series data
dates = pd.date_range(start="2021-01-01", end="2021-12-31", freq='D')
data = np.random.randn(len(dates)).cumsum()

# Creating the plot
plt.figure(figsize=(10, 6))
plt.plot(dates, data, label='Random Time Series', color='blue')
plt.title('Random Time Series Plot')
plt.xlabel('Date')
plt.ylabel('Value')
plt.legend()
plt.grid(True)
plt.xticks(rotation=45)
plt.tight_layout()

# Display the plot
plt.show()
print('We are just generating a random time serie here.')
../_images/995ca5c73c676670419fe859896425fe2f38d46fc75e7d72a34004572494c87d.png
We are just generating a random time serie here.
../_images/32d57739748836658931f113615023254055118d6397b77e12da157ac0fc38db.png
../_images/da5aa98f2f8361a105f0353ec538edc05f66e975c655ed299884b90dbb94de81.png